import './App.css';

// 导入路由
import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom'

import Home from './pages/Home'

function App() {
  return (
    <Router>
    <div className="App">
      <Route path="/home" component={Home}></Route>
      <Route path="/" exact render={_ => <Redirect to="/home" />} ></Route>
      <Route path='/home/index' exact render={_ => <Redirect to="/home" />} ></Route>

    </div>
    </Router>
  );
}

export default App;
